// vite.config.ts
import { defineConfig, loadEnv } from "file:///A:/web%E9%A1%B9%E7%9B%AE/right_select/admin/node_modules/.pnpm/vite@5.0.12_sass@1.70.0/node_modules/vite/dist/node/index.js";
import vue from "file:///A:/web%E9%A1%B9%E7%9B%AE/right_select/admin/node_modules/.pnpm/@vitejs+plugin-vue@4.6.2_vite@5.0.12_vue@3.4.15/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import { createSvgIconsPlugin } from "file:///A:/web%E9%A1%B9%E7%9B%AE/right_select/admin/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.0.12/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import { viteMockServe } from "file:///A:/web%E9%A1%B9%E7%9B%AE/right_select/admin/node_modules/.pnpm/vite-plugin-mock@2.9.6_mockjs@1.1.0_rollup@2.79.1_vite@5.0.12/node_modules/vite-plugin-mock/dist/index.js";
var vite_config_default = defineConfig(({ command, mode }) => {
  let env = loadEnv(mode, process.cwd());
  return {
    publicPath: "https://gitee.com/jch1011/guiguzhenxuan",
    plugins: [
      vue(),
      createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
        symbolId: "icon-[dir]-[name]"
      }),
      viteMockServe({
        localEnabled: command === "serve"
        //保证开发阶段可以使用mock接口
      })
    ],
    resolve: {
      alias: {
        "@": path.resolve("./src")
        // 相对路径别名配置，使用 @ 代替 src
      }
    },
    //scss全局变量一个配置
    css: {
      preprocessorOptions: {
        scss: {
          javascriptEnabled: true,
          additionalData: '@import "./src/style/var.scss";'
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJBOlxcXFx3ZWJcdTk4NzlcdTc2RUVcXFx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